<extend name="Public/common"/>
<block name="othercss">
<style>
    .jsli2{
        border: 0px;
        margin-top: 10px;
    }
    .jssum td.bg {
        background-color: transparent;
    }
</style>
</block>
<block name="body">
<div class="mian">
    <div class="box">
        <div class="jssum">
            <div class="js1 jss1">
                <div class="jstitle">收货地址</div>
                <div class="table-w">
                    <div class="tables">
                        <table>
                            <tr>
                                <td class="jc1">
                                    <a>{$order.addr_realname}</a>
                                </td>
                                <td class="jc2">
                                    {$order.addr_phone}
                                </td>
                                <td class="js3">
                                     {$order.addr_province} {$order.addr_city} {$order.addr_area} {$order.addr_address} ,{$order.addr_zip}
                                </td>
                                <td class="js4">
                                </td>
                            </tr>
                        </table></div>
                </div>
            </div>
            <div class="jsli2">
                <div class="jstitle">备注</div>
                <div class="textarea">
                  {$order.remark_member}
                </div>
            </div>
            <div class="jsli3">
                <div class="jstitle">支付方式</div>
                <div class="textarea">
                    <ul class="fangshi">
                        <li class="on"><i class="dian"></i>支付宝</li>
                        <li><i class="dian"></i>微信</li>
                    </ul>
                </div>
            </div>

            <div class="jsli3">
                <div class="jstitle">确认商品信息</div>
                <div class="textarea">
                        <div class="gwc2" >
                            <ul class="clearfix">
                                <li class="gt1">
                                    <!--<i>√</i>全选-->
                                </li>
                                <li class="gt2">商品信息</li>
                                <li class="gt3">单价（元）</li>
                                <li class="gt4">数量</li>
                                <li class="gt5">金额（元）</li>
                                <li class="gt6">操作</li>
                            </ul>
                            <table>
                            <foreach name="goods" item="goods_item">
                                <tr>
                                    <td class="gt1">
                                    </td>
                                    <td class="gt2">
                                        <a class="clearfix"  href="{:urlrotue('Goods/index',array('id'=>$goods_item['goods_id']))}" target="_blank">
                                            <div class="lans">{$goods_item.goods_name}
                                             <div class="spec">{$goods_item.goods_spec}</div>
                                            </div>
                                            
                                            <div class="imgs"><img src="__ROOT__{$goods_item.goods_picture}" width="80" height="80"/> </div>
                                        </a>
                                    </td>
                                    <td class="gt3">
                                       
                                        <span class="hong">{$goods_item.goods_price}</span>
                                    </td>
                                    <td class="gt4">
                                      {$goods_item.goods_num} 
                                    </td>
                                    <td class="gt5">
                                        <span class="hong"> {$goods_item['goods_price']*$goods_item['goods_num']}</span>
                                    </td>
                                    <td class="gt6">
                                        <a  href="{:urlrotue('Goods/index',array('id'=>$goods_item['goods_id']))}" style="text-align:center;" target="_blank">查看</a>
                                    </td>
                                </tr>
                               </foreach>
                            </table>
                        </div>
                    </div>
                    <div class="gwc3 clearfix">
                        <div class="right">
                            <a>商品总价:￥{$order.total_cart}</a>
                        </div>
                        <div class="left">
                            <!--<a><i></i>全选</a>-->
                        </div>
                    </div>
                <ul class="lanjisuan">
                
        
                <if condition="$order['total_delivery'] gt 0">
                    <li class="clearfix">
                        <span class="fangs">运费</span>
                        <span class="red">￥{$order.total_delivery}</span>
                    </li>
                  </if>
                  
                   <if condition="$order['total_pay_yhq'] gt 0">
                   <li class="clearfix">
                        <span class="fangs">优惠金额</span>
                        <span class="red">￥-{$order.total_pay_yhq}</span>
                    </li>
                  </if>
                    <if condition="$order['total_pay_point'] gt 0">
                   <li class="clearfix">
                        <span class="fangs">积分金额</span>
                        <span class="red">￥-{$order.total_pay_point}</span>
                    </li>
                  </if>
                 
                    <li>
                        实付款：￥<span class="sfk">{$order.total_need_pay}</span>
                    </li>
                    <li>
                        <a class="sub">确定支付</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
</block>
<block name="otherjs">
<script>
    $(function(){
        $('.jssum tr').hover(function(){
            $(this).children('td').addClass('bg');
        },function(){
            $(this).children('td').removeClass('bg');
        })
        $('.fangshi li').click(function(){
            $('.fangshi li').removeClass('on');
            $(this).toggleClass('on');
        })
    })
</script>
</block>
